home *** CD-ROM | disk | FTP | other *** search
/ Internet Warrior 1993 July / Internet Warrior No. 1 July 1993 - Austin Code Works.ISO / tcpip / cuttcp / cutcp.zoo / default.tbl < prev    next >
Encoding:
Text File  |  1990-11-12  |  8.2 KB  |  280 lines

  1. ;  default keymap table... 11/12/90  This is for VT102 screens only,
  2. ;  not 3278 screens.
  3.  
  4. ; lines beginning w/ ; or blank lines are ignored.
  5.  
  6. ; format of input lines is:
  7. ; set key [optional mode char] keynumber keydefinition
  8. ; where mode chars can be
  9. ;        +     For Application keypad expansion only
  10. ;     -     For nonapplication keypad expansion only
  11. ;     $     For cursor set mode  (ugh!)
  12. ;           If blank or missing, then the expansion is for any mode
  13. ;
  14. ; keynumbers are HEXADECIMAL numbers (sorry folks, parser is simple)
  15. ;
  16. ; keydefinition is any non blank text up to end of line or ';', including
  17. ; trailing blanks. TRAILING BLANKS ARE SIGNIFIGANT!
  18. ;
  19. ; To include a ';' in your string, if you don't have a comment also, use a \
  20. ;
  21. ; A key definition can not be longer than 255 characters.
  22. ;
  23. ; NO TABS ALLOWED EXCEPT IN KEY DEFINITION.. (sorry, simple, small code)
  24. ; if you need an expansion beginning w/ blanks, make the first sequence be
  25. ; \040 which is octal space
  26. ;
  27. ; Recognized escapes are:
  28. ; \nnn  (all three digits required)  expands to the octal char.
  29. ;        If your session is not open in binary mode, you may see 7-bit 
  30. ;     truncation
  31. ;
  32. ;  \r         return
  33. ;  \n        newline
  34. ;  \e        Escape (\033)
  35. ;  \\        The \ character
  36. ;  \;        The ; character
  37. ;  \"MACRO"       Substitutes the specified macro... (internal only in this version)
  38. ;
  39. ;
  40. ; Additional commands...
  41. ; You may also include the commands
  42. ;    extended   (means process subsequently encountered keys only if
  43. ;             running on an extended keyboard)
  44. ;
  45. ;    notextended (converse of above)
  46. ;
  47. ; mini-example
  48. ; extended
  49. ; set key + 110d  \e?2
  50. ; set key - 110d  \e?0;  this is a comment, notice no extra spaces after 0
  51. ; set key   10f   \010
  52. ; notextended
  53. ; set key 11c  \r
  54. ;
  55. ; The above example sets the keypad enter key to return two different
  56. ; values depending on whether application mode is set.
  57. ; (also sets the tab key to send a tab)
  58. ; otherwise, on non extended keyboards, send <CR> when keypad enter is pressed
  59.  
  60. ; ### System Macro examples. ###
  61. ; this section demonstrates the use of the system macro bindings
  62. ; you should also look at: sample3.scr, sample3.def, sample3.tbl
  63.  
  64. ;    set key 968 \"SYS_TELNET"(omnigate)
  65. ; The above sets ALT-F1 to telnet to omnigate
  66.  
  67. ;    set key 969 echo My IP is \"SYS_MYIP" and I like it\n"
  68. ; The above set ALT-F3 to print out a line including the current IP address
  69.  
  70. ;    set key 96b \"SYS_SCRIPT"(sample.scr)
  71. ; The above binds a script to ALT-F4
  72.  
  73. ;    set key 968 \"SYS_RLOGIN"(128.153.4.2)
  74. ; ALT-F1 does an rlogin to an ip address
  75.  
  76. ;    set key 968 \"SYS_SHOW"(omnigate)
  77. ; ALT-F1 will cause the session named 'omnigate' to be displayed on screen
  78. ; if it exists.
  79.  
  80. ;     set key 968 \"SYS_KEYMAP(mykey.tbl)
  81. ; ALT-F1 causes the current session keymap to be replaced with mykey.tbl
  82.  
  83. ;    set key 968 \"SYS_KEYMAP(default,mykey.tbl)
  84. ; now Alt-F1 causes the system-wide default key table to be replaced with
  85. ; mykey.tbl (as if  name=default,keymap=mykey.tbl, was in config.tel)
  86.  
  87. ;     set key 92d \"SYS_CLOSE"(noask)
  88. ; Redefines ALT-X to not ask if you want to close the current session.
  89.  
  90. ;------------------------  defaults begin here ------------------------------
  91. ; first defaults are for either extended or non-extended
  92. ;
  93. ; ** define commands for ALT keys, etc
  94. set key 91e \"SYS_TELNET";     ALT-A - add a telnet session
  95. set key 92e \"SYS_CAPTURE";    ALT-C - toggle capture screen mode
  96. set key 920 \"SYS_DUMP";    ALT-D - dump screen
  97. set key 912 \"SYS_DOSESCAPE";    ALT-E - escape to dos
  98. set key 922 \"SYS_GRAPHMENU";    ALT-G - graphics menu
  99. set key 923 \"SYS_HELP";    ALT-H - show help screen
  100. set key 917 \"SYS_MYIP";    ALT-I - send my ip address
  101. set key 925 \"SYS_TEL_ERASE_CHAR"; ALT-K - send telnet erase character command
  102. set key 926 \"SYS_LASTSESS";    ALT-L - switch to previous session screen
  103. set key 932 \"SYS_CONSOLE";    ALT-M - show console screen
  104. set key 931 \"SYS_NEXTSESS";    ALT-N - switch to next session screen
  105. set key 918 \"SYS_TEL_AO";    ALT-O - send 'abort output' telnet command
  106. set key 910 \"SYS_TEL_AYT";    ALT-Q - send telnet 'are you there' command
  107. set key 919 \"SYS_PARMS";    ALT-P - set window parameters
  108. set key 913 \"SYS_VTRESET";    ALT-R - reset vt100 screen
  109. set key 91f \"SYS_TEL_SKIP";    ALT-S - discard incoming chars for a while
  110. set key 914 \"SYS_FTP";        ALT-T - send ftp myaddress
  111. set key 916 \"SYS_TEL_ERASE_LINE"; ALT-U - send telnet erase line command
  112. set key 92f \"SYS_RSHELL";    ALT-V - add an rshell session
  113. set key 92d \"SYS_CLOSE";    ALT-X - close current session window
  114. set key 911 \"SYS_FTPPASSWD";    ALT-W - send internal ftp password
  115. set key 915 \"SYS_TEL_IP";    ALT-Y - send telnet 'interrupt process' command
  116. set key 92c \"SYS_RLOGIN";    ALT-Z - add an rlogin session
  117. set key 577 \"SYS_TEKINIT";    CTRL-HOME - reset tek screen, enter tek mode
  118. set key 982 \"SYS_SCRIPT";    ALT-MINUS - begin or end a script
  119. set key 96a \"SYS_ABORT";    ALT-F3 - abort program
  120. set key 970 \"SYS_NETSTAT";    ALT-F9 - display tcp connection status in console window
  121.  
  122. ; ok, now do something nice with the PF keys
  123. ; Simplest thing is map PF1 - PF4 to F1-F4
  124. ; in any mode
  125. set key 13b \eOP;        F1=PF1
  126. set key 13c \eOQ;        F2=PF2
  127. set key 13d \eOR;        F3=PF3
  128. set key 13e \eOS;        F4=PF4
  129. set key 13f \e[16~;        F5=CSI 17
  130. set key 140 \e[17~;        F6
  131. set key 141 \e[18~;        F7
  132. set key 142 \e[19~;        F8
  133. set key 143 \e[20~;        F9
  134. set key 144 \e[21~;        F10
  135. set key 354 \e[22~;        SF1
  136. set key 355 \e[23~;        SF2
  137. set key 356 \e[24~;        SF3
  138. set key 357 \e[25~;        SF4
  139. set key 358 \e[26~;        SF5
  140. set key 359 \e[27~;        SF6
  141. set key 35a \e[28~;        SF7
  142. set key 35b \e[29~;        SF8
  143. set key 35c \e[30~;        SF9
  144. set key 35d \e[31~;        SF10
  145.  
  146. notextended
  147. ; the following sets the number pad for numlock mode or shift-keypad
  148. set key 352 0
  149. set key 353 .
  150. set key 34f 1
  151. set key 350 2
  152. set key 351 3
  153. set key 34b 4
  154. set key 34c 5
  155. set key 34d 6
  156. set key 347 7
  157. set key 348 8
  158. set key 349 9
  159.  
  160. ; now we define the keypad keys for non-numlock mode, non-cursor set mode
  161. set key 148 \e[A
  162. set key 150 \e[B
  163. set key 14b \e[D
  164. set key 14d \e[C
  165. ; and for cursor set mode
  166. set key $ 148 \eOA
  167. set key $ 150 \eOB
  168. set key $ 14b \eOD
  169. set key $ 14d \eOC
  170.  
  171. ; now set the dash as the keypad - key in applc mode, or - in non appl mode
  172. set key + 14a \eOm
  173. set key - 14a -
  174. set key 34a -
  175. ; set plus as dot (non shifted plus)
  176. set key + 14e \eOn
  177. set key - 14e .
  178. set key 34e .
  179. ; set shifted plus to keypad ENTER in application mode, or CR in non appl mode
  180. set key + 34e \eOM
  181. set key - 34e 13
  182. ; finally, set the * as the comma key
  183. set key + 137 \eOl
  184. set key - 137 ,
  185. set key 337 ,
  186.  
  187. ; finally, the rest of the keypad is mapped to alt-0 through alt-9
  188. ; but only in application mode
  189. set key + 981 \eOp
  190. set key + 978 \eOq
  191. set key + 979 \eOr
  192. set key + 97a \eOs
  193. set key + 97b \eOt
  194. set key + 97c \eOu
  195. set key + 97d \eOv
  196. set key + 97e \eOw
  197. set key + 97f \eOx
  198. set key + 980 \eOy
  199.  
  200. ; begin extended keyboard stuff
  201. extended
  202. set key 352 0
  203. set key 353 .
  204. set key 34f 1
  205. set key 350 2
  206. set key 351 3
  207. set key 34b 4
  208. set key 34c 5
  209. set key 34d 6
  210. set key 347 7
  211. set key 348 8
  212. set key 349 9
  213. set key 34e +
  214. set key 34a -
  215. set key 337 *
  216. set key 132f /
  217. set key 130d \r
  218.  
  219. ; now set the grey cursor keys... non-cursor set mode
  220. set key 1148 \e[A
  221. set key 1150 \e[B
  222. set key 114d \e[C
  223. set key 114b \e[D
  224.  
  225. ; grey keys in cursor set mode
  226. set key $ 1148 \eOA
  227. set key $ 1150 \eOB
  228. set key $ 114d \eOC
  229. set key $ 114b \eOD
  230.  
  231. ; set the keypad keys in non application mode to just send numbers and dash,etc
  232. set key 152 0
  233. set key 153 .
  234. set key 14f 1
  235. set key 150 2
  236. set key 151 3
  237. set key 14b 4
  238. set key 14c 5
  239. set key 14d 6
  240. set key 147 7
  241. set key 148 8
  242. set key 149 9
  243. set key 14e +
  244. set key 14a -
  245. set key 137 *
  246. set key 112f /
  247. set key 110d \r
  248.  
  249. ; now set them to send cool stuff in appl mode
  250.  
  251. set key + 152 \eOp
  252. set key + 153 \eOn
  253. set key + 14f \eOq
  254. set key + 150 \eOr
  255. set key + 151 \eOs
  256. set key + 14b \eOt
  257. set key + 14c \eOu
  258. set key + 14d \eOv
  259. set key + 147 \eOw
  260. set key + 148 \eOx
  261. set key + 149 \eOy
  262. ; make the + key be the comma
  263. set key + 14e \eOl
  264. set key + 14a \eOm
  265. ; the enter key sends something special in appl mode
  266. set key + 110d \eOM
  267.  
  268. ; now set the PF1-PF4 keys to be the grey special keys
  269. ; <insert> <home> <Pageup> <Delete> 
  270. ; but only in application mode
  271. set key + 1152 \eOP
  272. set key + 1147 \eOQ
  273. set key + 1149 \eOR
  274. set key + 1153 \eOS
  275.  
  276.